package com.cskaoyan.util;

import com.cskaoyan.bean.po.MarketUser;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 * @author jzp
 * @since 2022/11/22 17:05
 */
public class GetInfo {
    public static MarketUser getWxLoginInfo() {
        Subject subject = SecurityUtils.getSubject();
        // 获取 登录用户信息
        MarketUser primaryPrincipal = (MarketUser) subject.getPrincipals().getPrimaryPrincipal();
        return primaryPrincipal;
    }
}
